<script type="text/html" id="tpl_xy">
<div class="public-tpl-row1">
    <form class="layui-form" id="tpl_xy_form" action="{:url('index/dictionary.drugs/info')}">
    	<input type="hidden" name="id" value="" autocomplete="off" class="layui-input">
<div id="findDrugDivBox">
    	<fieldset class="layui-elem-field layui-field-title"><legend>搜索系统内置药品</legend></fieldset>
        <div class="layui-form-item" style="margin-bottom:15px;">
        	<label class="layui-form-label" id="tpl_zhiwei_label">系统药品</label>
	        <div class="layui-input-block">
	            <input type="text" id="findSysDrugs" maxlength="20" placeholder="名称、条码、编码、厂家等关键词" autocomplete="off" class="layui-input">
	        </div>
        </div>
</div>
    	<fieldset class="layui-elem-field layui-field-title"><legend>药品基本信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label" id="tpl_xy_label"><i class="c-red">*</i>药品名称</label>
				<div class="layui-input-inline">
				<input type="text" name="name" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>规格</label>
				<div class="layui-input-inline">
				<input type="text" name="spec" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>剂型</label>
				<div class="layui-input-inline">
				<input type="text" name="jixing" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">国药准字</label>
				<div class="layui-input-inline">
				<input type="text" name="guoyaozhunzi" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">厂家</label>
				<div class="layui-input-inline">
				<input type="text" name="changjia" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">药品类型</label>
				<div class="layui-input-inline">
					<select name="yp_type">
		        		{volist name="xy_yptype_list" id="xytype"}
	                        <option value="{$xytype.id}">{$xytype.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">条形码</label>
				<div class="layui-input-inline">
				<input type="text" name="sn" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">商品名</label>
				<div class="layui-input-inline">
				<input type="text" name="goods_name" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>本位码</label>
				<div class="layui-input-inline">
				<input type="text" name="benweima" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">拼音简码</label>
				<div class="layui-input-inline">
				<input type="text" name="py_code" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">五笔简码</label>
				<div class="layui-input-inline">
				<input type="text" name="wb_code" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">药品编码</label>
				<div class="layui-input-inline">
				<input type="text" name="bianma" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <fieldset class="layui-elem-field layui-field-title"><legend>处方信息</legend></fieldset>
        <div class="layui-form-item drugs_guige">
        	<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>编辑规格</label>
				<div class="layui-input-inline" style="width:80px;">
				<input type="text" name="jl_num" autocomplete="off" placeholder="剂量" class="layui-input">
				</div>
			</div>
        	<div class="layui-inline">
				<div class="layui-input-inline" style="width:130px;">
				<select name="jl_unit" lay-search>
	        		{volist name="xy_jlunit_list" id="jl"}
                        <option value="{$jl.id}">{$jl.name}</option>
                    {/volist}
                </select>
				</div>
			</div>
			<span style="padding:10px 10px 0 0px;">*</span>
        	<div class="layui-inline">
				<div class="layui-input-inline" style="width:80px;">
				<input type="text" name="zj_num" autocomplete="off" placeholder="制剂数量" class="layui-input" style="width:80px;">
				</div>
			</div>
        	<div class="layui-inline">
				<div class="layui-input-inline" style="width:130px;">
				<select name="zj_unit" lay-filter="zj_unit" lay-search>
	        		{volist name="xy_zjunit_list" id="zj"}
                        <option value="{$zj.id}">{$zj.name}</option>
                    {/volist}
                </select>
				</div>
			</div>
			<span style="padding:10px 10px 0 0px;">/</span>
        	<div class="layui-inline">
				<div class="layui-input-inline" style="width:130px;">
				<select name="kc_unit" lay-filter="kc_unit" lay-search>
	        		{volist name="xy_kcunit_list" id="kc"}
                        <option value="{$kc.id}">{$kc.name}</option>
                    {/volist}
                </select>
				</div>
			</div>
			<span style="padding:10px 0px 0 0px;">示例：1片*20片/盒</span>
        </div>
        <div class="layui-form-item drugs_guige">
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>零售价</label>
				<div class="layui-input-inline" style="width:135px;">
				<input type="text" name="price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="xy_form_ls_unit"></label>
			<div class="layui-inline"><label class="layui-form-label">最高限价</label>
				<div class="layui-input-inline" style="width:135px;">
				<input type="text" name="max_price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="xy_form_zj_unit"></label>
			<div class="layui-inline"><label class="layui-form-label">启用标志</label>
				<div class="layui-input-inline">
				<input type="radio" name="status" value="1" title="已启用" checked>
	            <input type="radio" name="status" value="0" title="已停用">
				</div>
			</div>
        </div>
        <div class="layui-form-item drugs_guige">
			<div class="layui-inline"><label class="layui-form-label">是否拆零</label>
				<div class="layui-input-inline">
				<input type="radio" name="is_cl" value="1" title="拆零" checked>
	            <input type="radio" name="is_cl" value="0" title="不拆零">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">拆零售价</label>
				<div class="layui-input-inline" style="width:175px;">
				<input type="text" name="cl_price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="xy_form_cl_unit"></label>
			<div class="layui-inline"><label class="layui-form-label">抗菌药物</label>
				<div class="layui-input-inline">
				<input type="radio" name="is_kjyw" value="1" title="是" checked>
	            <input type="radio" name="is_kjyw" value="0" title="否">
				</div>
			</div>
        </div>
        <fieldset class="layui-elem-field layui-field-title"><legend>使用信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">默认用法</label>
				<div class="layui-input-inline">
					<select name="mr_yf" lay-search>
		        		{volist name="xy_yongfa_list" id="xyyf"}
	                        <option value="{$xyyf.id}">{$xyyf.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">默认频率</label>
				<div class="layui-input-inline">
					<select name="mr_pl" lay-search>
		        		{volist name="xy_yypl_list" id="pl"}
	                        <option value="{$pl.id}">{$pl.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">默认用量</label>
				<div class="layui-input-inline">
				<input type="text" name="mr_yl" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
    </form>
</div>
</script>

<script type="text/html" id="tpl_zy">
<div class="public-tpl-row1">
    <form class="layui-form" id="tpl_zy_form" action="{:url('index/dictionary.drugs/info')}">
    	<input type="hidden" name="id" value="" autocomplete="off" class="layui-input">
    	<fieldset class="layui-elem-field layui-field-title"><legend>药品基本信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label" id="tpl_zy_label"><i class="c-red">*</i>药品名称</label>
				<div class="layui-input-inline">
				<input type="text" name="name" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">经典药名</label>
				<div class="layui-input-inline">
				<input type="text" name="jd_name" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>规格</label>
				<div class="layui-input-inline">
				<input type="text" name="spec" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">厂家</label>
				<div class="layui-input-inline">
				<input type="text" name="changjia" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">产地</label>
				<div class="layui-input-inline">
				<input type="text" name="chandi" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">药品类型</label>
				<div class="layui-input-inline">
					<select name="yp_type">
		        		{volist name="zy_yptype_list" id="zytype"}
	                        <option value="{$zytype.id}">{$zytype.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">拼音简码</label>
				<div class="layui-input-inline">
				<input type="text" name="py_code" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">五笔简码</label>
				<div class="layui-input-inline">
				<input type="text" name="wb_code" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">本位码</label>
				<div class="layui-input-inline">
				<input type="text" name="benweima" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">药品编码</label>
				<div class="layui-input-inline">
				<input type="text" name="bianma" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">启用标志</label>
				<div class="layui-input-inline">
				<input type="radio" name="status" value="1" title="已启用" checked>
	            <input type="radio" name="status" value="0" title="已停用">
				</div>
			</div>
			
        </div>
        <fieldset class="layui-elem-field layui-field-title"><legend>处方信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">零售单位</label>
				<div class="layui-input-inline">
					<select name="ls_unit" lay-filter="zy_ls_unit" lay-search>
		        		{volist name="xy_zjunit_list" id="zj"}
                        <option value="{$zj.id}">{$zj.name}</option>
                    	{/volist}
	                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">库存单位</label>
				<div class="layui-input-inline">
					<select name="kc_unit" lay-search>
					{volist name="zy_unit_list" id="zykc"}
					<option value="{$zykc.id}">{$zykc.name}</option>
					{/volist}
	                </select>
				</div>
			</div>
        	<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>库存转换</label>
				<div class="layui-input-inline">
				<input type="text" name="kc_zh_bi" autocomplete="off" class="layui-input" placeholder="1g=?g">
				</div>
			</div>
        </div>
        <div class="layui-form-item drugs_guige">
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>零售价</label>
				<div class="layui-input-inline" style="width:165px;">
				<input type="text" name="price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="zy_form_ls_unit"></label>
			<div class="layui-inline"><label class="layui-form-label">最高限价</label>
				<div class="layui-input-inline" style="width:165px;">
				<input type="text" name="max_price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="zy_form_xj_unit"></label>
        </div>
        <fieldset class="layui-elem-field layui-field-title"><legend>使用信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">用法/煎法</label>
				<div class="layui-input-inline">
					<select name="mr_yf" lay-search>
		        		{volist name="xy_yongfa_list" id="xyyf"}
	                        <option value="{$xyyf.id}">{$xyyf.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
        </div>
    </form>
</div>
</script>

<script type="text/html" id="tpl_cl">
<div class="public-tpl-row1">
    <form class="layui-form" id="tpl_cl_form" action="{:url('index/dictionary.drugs/info')}">
    	<input type="hidden" name="id" value="" autocomplete="off" class="layui-input">
    	<fieldset class="layui-elem-field layui-field-title"><legend>材料基本信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label" id="tpl_cl_label"><i class="c-red">*</i>材料名称</label>
				<div class="layui-input-inline">
				<input type="text" name="name" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>规格</label>
				<div class="layui-input-inline">
				<input type="text" name="spec" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">厂家</label>
				<div class="layui-input-inline">
				<input type="text" name="changjia" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">材料分类</label>
				<div class="layui-input-inline">
					<select name="cate_id">
		        		{volist name="cl_type_list" id="cltype"}
	                        <option value="{$cltype.id}">{$cltype.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">拼音简码</label>
				<div class="layui-input-inline">
				<input type="text" name="py_code" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">五笔简码</label>
				<div class="layui-input-inline">
				<input type="text" name="wb_code" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">材料编码</label>
				<div class="layui-input-inline">
				<input type="text" name="bianma" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">产地</label>
				<div class="layui-input-inline">
					<select name="chandi">
		        		{volist name="cd_type_list" id="clcd"}
	                        <option value="{$clcd.id}">{$clcd.name}</option>
	                    {/volist}
	                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">特殊材料</label>
				<div class="layui-input-inline">
				<input type="radio" name="is_tscl" value="1" title="是">
	            <input type="radio" name="is_tscl" value="0" title="否" checked>
				</div>
			</div>
        </div>
        <fieldset class="layui-elem-field layui-field-title"><legend>使用信息</legend></fieldset>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">零售单位</label>
				<div class="layui-input-inline">
					<select name="ls_unit" lay-filter="cl_ls_unit" lay-search>
		        		{volist name="zy_unit_list" id="cldw"}
                        <option value="{$cldw.id}">{$cldw.name}</option>
                    	{/volist}
	                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">库存单位</label>
				<div class="layui-input-inline">
					<select name="kc_unit" lay-filter="cl_kc_unit" lay-search>
					{volist name="zy_unit_list" id="clkcdw"}
					<option value="{$clkcdw.id}">{$clkcdw.name}</option>
					{/volist}
	                </select>
				</div>
			</div>
        	<div class="layui-inline"><label class="layui-form-label">库存转换</label>
				<div class="layui-input-inline">
				<input type="text" name="kc_zh_bi" autocomplete="off" class="layui-input" placeholder="">
				</div>
			</div>
        </div>
        <div class="layui-form-item drugs_guige">
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>零售价</label>
				<div class="layui-input-inline" style="width:135px;">
				<input type="text" name="price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="cl_form_ls_unit"></label>
			<div class="layui-inline"><label class="layui-form-label">最高限价</label>
				<div class="layui-input-inline" style="width:135px;">
				<input type="text" name="max_price" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label id="cl_form_xj_unit"></label>
			<div class="layui-inline"><label class="layui-form-label">启用标志</label>
				<div class="layui-input-inline">
				<input type="radio" name="status" value="1" title="已启用" checked>
	            <input type="radio" name="status" value="0" title="已停用">
				</div>
			</div>
        </div>
    </form>
</div>
</script>